package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.QcProduce;
import com.yegs.jltqc.VO.QcStock;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface QcStockRepository extends JpaRepository<QcStock,Long> {

    Page<QcStock> findQcStocksByName(String name, Pageable pageable);

    QcStock findFirstByIdIsAfter(Long id);

    QcStock findFirstByIdBeforeOrderByIdDesc(Long id);

    QcStock findFirstByOrderById();

    QcStock findFirstByOrderByIdDesc();

}
